package com.tongji.housediy.events.goodsEvent
{
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	
	/**
	 * 
	 * @author liaoruohuai
	 * 2011-4-8
	 */
	public class SearchGoodsEvent extends Event
	{
		public static const SEARCH_GOODS:String = "searchGoods";
		public static const UPDATE_SEARCH_RESULT:String = "updateSearchResult";
		
		public var searchType:Boolean;
		public var searchName:String;
		public var searchResult:ArrayCollection;
		
		public function SearchGoodsEvent(type:String, searchType:Boolean, searchName:String = null, searchResult:ArrayCollection = null)
		{
			super(type);
			this.searchType = searchType;
			this.searchName = searchName;
			this.searchResult = searchResult;
		}
		
		override public function clone():Event
		{
			return new SearchGoodsEvent(type, searchType, searchName, searchResult);
		}
	}
}